//
//  opencvWrapper.h
//  Entrance
//
//  Created by chunhuiLai on 2018/1/16.
//  Copyright © 2018年 chunhuiLai. All rights reserved.
//

#import <Foundation/Foundation.h>
@class UIImage;

typedef void (^CompletedBlock)(NSString *text);

@interface OpenCVWrapper : NSObject


/**
 *  初始化一个单例
 *
 *  @return 返回一个OpenCVWrapper的实例对象
 */
+ (instancetype)shared;

/**
 *  根据身份证照片得到身份证号码
 *
 *  @param cardImage 传入的身份证照片
 */
- (NSString *)recognizeCardWithImage:(UIImage *)cardImage;

- (UIImage *)opencvScanCard:(UIImage *)image;

- (NSString *)tesseractRecognizeWithImage:(UIImage *)image;

@end
